import React from "react";
import Child from "./components/child";
import './App.css'

class App extends React.Component {
  state = {
    num:0
  }
  render() {
    let {num} = this.state;
    return (
      <div>
        <h1 id="box">hello world React!!! {num}</h1>
        <button onClick={()=>{
          num++;
          this.setState({
            num:num
          })
        }}>++</button>
        <Child/>
        
      </div>
    )
  }
}

export default App;